from django.db import models


class Result(models.Model):
    class META:
        db_table = "result"

    id = models.AutoField(auto_created=True, primary_key=True)
    stu_id = models.IntegerField(null=False, unique=True)
    chinese = models.FloatField()
    math = models.FloatField()
    english = models.FloatField()

    def __str__(self):
        return "<{} {}>".format(self.__class__, self.id)

